<?
$numRows = sizeof($this->comments);
if ($numRows) 
{
?>
<table width="100%" cellspacing="0" cellpadding="0" class="edit_block">
	<tr>
		<th>&nbsp;</th>
		<th width="1" class="last">&nbsp;</th>
	</tr>
<?
    while (list(, $comment) = each($this->comments)) {
        ?>
	  <tr>
		<td class="first">
			<table width="100%" cellspacing="3" cellpadding="0" class="table_no_lines">
				<tr>
					<td><b><?=$comment->GetDateCreated();?></b></td>
					<td align="right"><b><?=$comment->GetUserName();?></b></td>
				</tr>
				<tr>
					<td colspan="2" class="comment"><?=$comment->GetMessage();?></td>
				</tr>				
			</table>
        </td>
		<td class="last"><a
			href="<?=MozgRoute::Get('http')->Create(array('module' => 'admin', 'ctrl' => $this->ctrlName, 'action' => 'del_comment', 'blog' => $this->blog->GetId(), 'id' => $this->entry->GetId(), 'comment' => $comment->GetId()));?>"
			title="Удалить комментарий?" class="del"><img
			src="<?=_ROOT_URL;?>files/images/admin/edit_close.gif" alt="close"
			title="" width="9" height="11"></a></td>
	</tr>
<?
    }
    ?>
 </table>
<?
} else {
    ?>
	нет комментариев
<?
}
?>    
<div class="bt_area"><input type="button" class="bt" value="Назад"
	onclick="window.location.href='<?=MozgRoute::Get('http')->Create(array('module' => 'admin', 'ctrl' => $this->ctrlName, 'action' => 'out_articles', 'blog' => $this->blog->GetId()));?>';" />
</div>